Sync default double-click time with GNOME
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Mar 2016 12:48:29 +0000 (07:48 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 7 Mar 2016 12:50:29 +0000 (07:50 -0500)
The default value for the double-click key in the
org.gnome.settings-daemon.peripherals.mouse schema is 400.
Use the same value as the declared default for the
gtk-double-click-time GTK+ setting, to avoid pointless
differences in corner cases.

https://bugzilla.gnome.org/show_bug.cgi?id=720950

gdk/wayland/gdkscreen-wayland.c
gtk/gtksettings.c

index 674f3a6b889cb83d1891ad81fb864d547f7bc7f6..0ee0f54dd119705d24de62a8894d56751233f826 100644 (file)
@@ -538,7 +538,7 @@ static TranslationEntry translations[] = {
   { "org.gnome.desktop.interface", "cursor-blink-timeout", "gtk-cursor-blink-timeout", G_TYPE_INT, { .i = 3600 } },
   { "org.gnome.desktop.interface", "gtk-im-module", "gtk-im-module", G_TYPE_STRING, { .s = "simple" } },
   { "org.gnome.desktop.interface", "enable-animations", "gtk-enable-animations", G_TYPE_BOOLEAN, { .b = TRUE } },
-  { "org.gnome.settings-daemon.peripherals.mouse", "double-click", "gtk-double-click-time", G_TYPE_INT, { .i = 250 } },
+  { "org.gnome.settings-daemon.peripherals.mouse", "double-click", "gtk-double-click-time", G_TYPE_INT, { .i = 400 } },
   { "org.gnome.settings-daemon.peripherals.mouse", "drag-threshold", "gtk-dnd-drag-threshold", G_TYPE_INT, {.i = 8 } },
   { "org.gnome.desktop.sound", "theme-name", "gtk-sound-theme-name", G_TYPE_STRING, { .s = "freedesktop" } },
   { "org.gnome.desktop.sound", "event-sounds", "gtk-enable-event-sounds", G_TYPE_BOOLEAN, { .b = TRUE } },
index 3be0fffd3995fc81e2a5eb7a1c1ef5fb07dd129d..627516724bbc5badec673ec119f29c18434ae766 100644 (file)
@@ -370,7 +370,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
                                              g_param_spec_int ("gtk-double-click-time",
                                                                P_("Double Click Time"),
                                                                P_("Maximum time allowed between two clicks for them to be considered a double click (in milliseconds)"),
-                                                               0, G_MAXINT, 250,
+                                                               0, G_MAXINT, 400,
                                                                GTK_PARAM_READWRITE),
                                              NULL);
   g_assert (result == PROP_DOUBLE_CLICK_TIME);